package cn.wolfcode.mapper;

import cn.wolfcode.domain.Employee;
import cn.wolfcode.domain.Permission;
import cn.wolfcode.qo.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmployeeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Employee record);

    Employee selectByPrimaryKey(Long id);

    List<Employee> selectAll();

    int updateByPrimaryKey(Employee record);

    List<Employee> queryForDate(QueryObject qo);

    void insertByRoleRelation(@Param("employeeId") Long employeeId,@Param("id") Long id);

    void deleteByRoleRelation(Long id);

    Employee selectByName(String name);

    List<Permission> selectAllPermission(Long id);

}